public class GraphQLServlet
extends graphql.servlet.GraphQLServlet
| Constructor and Description |
|---|
GraphQLServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected GraphQLContext |
createContext(java.util.Optional<HttpServletRequest> request,
java.util.Optional<HttpServletResponse> response) |
protected java.lang.Object |
createRootObject(java.util.Optional<HttpServletRequest> request,
java.util.Optional<HttpServletResponse> response) |
protected void |
doGet(HttpServletRequest req,
HttpServletResponse resp) |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse resp) |
protected ExecutionStrategyProvider |
getExecutionStrategyProvider() |
protected GraphQLErrorHandler |
getGraphQLErrorHandler() |
protected Instrumentation |
getInstrumentation() |
HttpServletRequest |
getRequest() |
protected GraphQLSchemaProvider |
getSchemaProvider() |
void |
init() |
protected java.util.Map<java.lang.String,java.lang.Object> |
transformVariables(GraphQLSchema schema,
java.lang.String query,
java.util.Map<java.lang.String,java.lang.Object> variables) |
protected GraphQLSchemaProvider getSchemaProvider()
protected GraphQLContext createContext(java.util.Optional<HttpServletRequest> request,
java.util.Optional<HttpServletResponse> response)
protected java.lang.Object createRootObject(java.util.Optional<HttpServletRequest> request,
java.util.Optional<HttpServletResponse> response)
protected ExecutionStrategyProvider getExecutionStrategyProvider()
protected Instrumentation getInstrumentation()
protected java.util.Map<java.lang.String,java.lang.Object> transformVariables(GraphQLSchema schema,
java.lang.String query,
java.util.Map<java.lang.String,java.lang.Object> variables)
protected GraphQLErrorHandler getGraphQLErrorHandler()
public void init()
protected void doPost(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
java.io.IOException
ServletExceptionjava.io.IOExceptionprotected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
java.io.IOException
ServletExceptionjava.io.IOExceptionpublic HttpServletRequest getRequest()